
assume cs:codesg
codesg segment
    array dw 0001, 0002, 0003, 0004
    start:
        mov ax, 0
        mov bx, 0
        mov ds, bx

        mov cx, 4
    s:
        add ax, cs:[bx]
        inc bx
        inc bx
        loop s

        mov ax, 4c00H
        int 21H

codesg ends
end start